package cn.bonoon.controllers.message;

import cn.bonoon.kernel.annotations.Cutoff;
import cn.bonoon.kernel.support.models.AbstractItem;
import cn.bonoon.kernel.web.annotations.grid.AsColumn;
import cn.bonoon.kernel.web.annotations.grid.AsDataGrid;
import cn.bonoon.kernel.web.annotations.grid.GridOptions;

@AsDataGrid(condition = MessageCondition.class, value = @GridOptions(operationWith = 120, fitColumns = true))
public class MessageItem extends AbstractItem implements MessageDefine {

	private static final long serialVersionUID = 4259432595841056151L;

	@AsColumn(width = 100, ordinal = 1)
	private String senderName;

	@AsColumn(width = 100, ordinal = 2)
	private String status;

	@AsColumn(width = 100, ordinal = 3)
	@Cutoff(-1)
	private String title;

	@AsColumn(width = 280, ordinal = 4)
	@Cutoff(-1)
	private String content;

	@AsColumn(width = 100, ordinal = 5)
	private String total;

	@AsColumn(width = 150, ordinal = 6)
	private String createAt;

	public String getCreateAt() {
		return createAt;
	}

	public void setCreateAt(String createAt) {
		this.createAt = createAt;
	}

	public String getSenderName() {
		return senderName;
	}

	public void setSenderName(String senderName) {
		this.senderName = senderName;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

}
